package com.qfmy.project.openApi.controller;

import com.qfmy.core.pojo.exception.CustomException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 描述:
 *
 * @author zhengjt
 * @date 2022-10-26 17:04:55
 */
@Slf4j
@Controller
public class SysOpenApiController {

    /**
     * TODO 后续注释，仅测试使用
     * @param request
     * @param response
     * @return
     * @throws CustomException
     */
    @RequestMapping("openTest")
    @ResponseBody
    public Object testOpenController(HttpServletRequest request, HttpServletResponse response) throws CustomException {
        log.info("========= 成功继承父接口 =========");
//        throw new CustomException("测试异常结果");
        return "测试成功，成功继承父类接口！";
    }







}
